package com.kevin.cloud.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 默认不会扫描此包下面的controller 直接访问404
 *
 * @author: Kevin
 * @Date: 2017/12/26
 * @Modified By:
 */
@RestController
public class TestController {

    @RequestMapping(value = "/test")
    public String hi(@RequestParam String name){

        return "test controller";
    }
}
